<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
         * {
            padding: 0;
            margin: 0;
        }
        body{
            overflow: hidden;
        }
        #box{
            width: 100vw;
        }
        #nav{
            width: 100vw;
            height: 30px; 
            background-color: transparent;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 100;
        }
        #content{
            width: 100vw;
            height: 100vh;
            background-color: pink;
            margin-top: 30px;
            position: sticky;
            top: 30px;
            overflow-y: auto;
            z-index: 10000;
            
        }
    </style>
</head>
<body>
    <div id="box">
        <div id="nav">导航</div>
        <div id="content">
            <pre>
            start
            1
            2
            3
            4
            5
            6
            7
            8
            9
            0
            1
            2
            3
            4
            5
            6
            7
            8
            9
            0
            1
            2
            3
            4
            5
            6
            7
            8
            9
            0
            1
            2
            3
            4
            5
            6
            7
            8
            9
            0
            1
            2
            3
            4
            5
            6
            7
            8
            9
            0
            1
            2
            3
            4
            5
            6
            7
            8
            9
            0
            1
            2
            3
            4
            5
            6
            7
            8
            9
            0
            1
            2
            3
            4
            5
            6
            7
            8
            9
            0
            1
            2
            3
            4
            5
            6
            7
            8
            9
            0
            1
            2
            3
            4
            5
            6
            7
            8
            9
            0
            1
            2
            3
            4
            5
            6
            7
            8
            9
            0
            1
            2
            3
            4
            5
            6
            7
            8
            9
            0
            end
            </pre>
        </div>
    </div>
</body>
</html>